import {TronAPI} from "./api-tron"
import {ContractBurnConfig} from "./contract-burn-config"
const TronAPI_Burn = {
	triggerContract: function(method, args, feeLimit, callValue) {
		return TronAPI.triggerContract(
			ContractBurnConfig.contractAddress, 
			ContractBurnConfig.contractAbi, 
			method, args, feeLimit, callValue
		)
	},
	burn: function(amount) {
		return this.triggerContract("burn", [amount], 1e8, 0)
	},
	withdraw: function(address, amount) {
		return this.triggerContract("withdraw", [address, amount], 1e8, 0)
	}
}
export {
  TronAPI_Burn
}